public class PersonProxy implements Person2{
    private Person2 target;

    public PersonProxy(Person2 target) {
        this.target = target;
    }

    @Override
    public void speak(String message) {
        System.out.println("Class begin");
        target.speak(message);
        System.out.println("Class end");
    }

}
